﻿using WebApp.Web.Core.Auth;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace kzjd.rycp.WebApp.Controllers
{
    public class ErrorController : Controller
    {
        private static readonly log4net.ILog log = log4net.LogManager.GetLogger("WebApp.Log");

        [IgnoreAuthorizeFilter]
        public ActionResult Index()
        {
            return new RedirectResult("~/Error/HttpError404");
        }

        [IgnoreAuthorizeFilter]
        public ActionResult HttpError404() {
            //区分已登录和未登录两种
            return View();
        }

        [IgnoreAuthorizeFilter]
        public ActionResult HttpError500()
        {
            return View();
        }

        /// <summary>
        /// 无权限
        /// </summary>
        /// <returns></returns>
        [IgnoreAuthorizeFilter]
        public ActionResult Forbidden()
        {
            return View();
        }
	}
}